package com.springcloud.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.springcloud.model.SysUserRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 * SysUserRole 表数据库控制层接口
 *
 */
@Mapper
public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {

	List<SysUserRole> selectByUserId(@Param("userId") Long userId);

    List<Long> selectRoleIdListByUserId(@Param("userId") Long userId);

}